- 23 Nov, 2009 1 commit
-
-
mattijs authored
-
- 12 Nov, 2009 1 commit
-
-
mattijs authored
-
- 04 Nov, 2009 1 commit
-
-
mattijs authored
-
- 03 Nov, 2009 2 commits
- 26 Oct, 2009 1 commit
-
-
mattijs authored
-
- 13 Aug, 2009 1 commit
-
-
mattijs authored
-
- 10 Aug, 2009 1 commit
-
-
Mark Olesen authored
- allow construct with Xfer container for the addressing - Replaced non-const addressing() method in BiIndirectList with resetAddressing() method as per IndirectList
-
- 23 Jul, 2009 2 commits
-
-
Mark Olesen authored
- use shift-right instead of shift-left formulation to avoid wrong behaviour with non-optimized compilation when the packed items fit exactly in the available number of bits.
-
- use shift-right instead of shift-left formulation to avoid wrong behaviour with non-optimized compilation when the packed items fit exactly in the available number of bits.
-
- 25 Jun, 2009 1 commit
-
-
mattijs authored
-
- 23 Jun, 2009 1 commit
-
-
henry authored
-
- 22 Jun, 2009 2 commits
-
-
Henry Weller authored
-
mattijs authored
-
- 18 Jun, 2009 1 commit
-
-
mattijs authored
-
- 18 May, 2009 1 commit
-
-
Mark Olesen authored
- Read a bracket-delimited list, or handle a single value as list of size 1. Mostly useful for handling command-line arguments. eg, if (args.options().found("patches")) { patches = readList<word>(IStringStream(args.options()["patches"])()); } can handle both of these: -patches patch0 -patches \( patch1 patch2 patch3 \)
-
- 27 Apr, 2009 1 commit
-
-
Mark Olesen authored
- DynamicList gets append methods as per List - misc cosmetic changes
-
- 22 Apr, 2009 1 commit
-
-
Mark Olesen authored
-
- 21 Apr, 2009 1 commit
-
-
Mark Olesen authored
- PackedList comments - solution.C verbosity about new solver syntax on master only
-
- 16 Mar, 2009 2 commits
-
-
Mark Olesen authored
- TODO: binary output is still a bit silly
-
Mark Olesen authored
-
- 12 Mar, 2009 3 commits
- 10 Mar, 2009 1 commit
-
-
mattijs authored
-
- 04 Mar, 2009 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- If the underlying type is contiguous, FixedList hashes its storage directly. - Drop labelPairHash (non-commutative) from fvMeshDistribute since FixedList::Hash does the right thing anyhow. - Hash<edge> specialization is commutative, without multiplication. - Hash<triFace> specialization kept multiplication (but now uLabel). There's not much point optimizing it, since it's not used much anyhow. Misc. changes - added StaticAssert to NamedEnum.H - label.H / uLabel.H : define FOAM_LABEL_MAX, FOAM_ULABEL_MAX with the values finally used for the storage. These can be useful for pre-processor checks elsewhere (although I stopped needing them in the meantime).
-
- 27 Feb, 2009 4 commits
-
-
Mark Olesen authored
- catch people using silly template sizes for FixedList, PackedList
-
mattijs authored
-
Mark Olesen authored
- compare iteratorBase == iteratorBase by value, not position thus this works list[a] == list[b] ... - compare iterator == iteratorBase and const_iterator == iteratorBase by position, not value. The inheritance rules means that this works: iter == list.end() ... this will compare positions: iter == list[5]; Of course, this will still compare values: *iter == list[5];
-
Mark Olesen authored
- Hash returns unsigned - FixedList templated on unsigned int - include uLabel.H in UList, HashTable etc. so the output function is know throughout
-
- 26 Feb, 2009 2 commits
-
-
Mark Olesen authored
- make table power-of-two, but since it seems to give 1-2% performance improvement, maybe forget it too. - remove two-argument form of hashing classes and do the modulus direclty within HashTable instead. This simplifies things a fair bit. - migrate Hash<void*> from db/dlLibrary to primitives/hashes/Hash
-
Mark Olesen authored
- it was possible to create a PackedList::iterator from a PackedList::const_iterator and violate const-ness - added HashTable::printInfo for emitting some information - changed default table sizes from 100 -> 128 in preparation for future 2^n table sizes
-
- 25 Feb, 2009 1 commit
-
-
Mark Olesen authored
- this allows SubField<point> for unallocated storage in PrimitivePatch
-
- 06 Feb, 2009 1 commit
-
-
Mark Olesen authored
- OSspecific: chmod() -> chMod(), even although it's not used anywhere - ListOps get subset() and inplaceSubset() templated on BoolListType - added UList<bool>::operator[](..) const specialization. Returns false (actually pTraits<bool>::zero) for out-of-range elements. This lets us use List<bool> with lazy evaluation and no noticeable change in performance. - use rcIndex() and fcIndex() wherever possible. Could check if branching or modulus is faster for fcIndex(). - UList and FixedList get 'const T* cdata() const' and 'T* data()' members. Similar to the STL front() and std::string::data() methods, they return a pointer to the first element without needing to write '&myList[0]', recast begin() or violate const-ness.
-
- 29 Jan, 2009 3 commits
-
-
Mark Olesen authored
- moving back to original flat addressing in iterators means there is no performance issue with using lazy evaluation - set() method now has ~0 for a default value. We can thus simply write 'set(i) to trun on all of the bits. This means we can use it just like labelHashSet::set(i) - added flip() method for inverting bits. I don't know where we might need it, but the STL has it so we might as well too.
-
Mark Olesen authored
-
Mark Olesen authored
- dropped auto-vivification for now (performance issue), but reworked to allow easy reinstatement - derived both iterator and const_iterator from iteratorBase and use iteratorBase as our proxy for non-const access to the list elements. This allows properly chaining assignments: list[1] = list[2]; list[1] = list[2] = 10; - assigning iterators from iteratorBase or other iterators works: iterator iter = list[20]; - made template parameter nBits=1 the default
-
- 28 Jan, 2009 1 commit
-
-
Mark Olesen authored
- the bit counting is relatively fast: under 0.2 seconds for 1M bits counted 1000 times - trim()'ing the final zero elements tested for a few cases, but might need more attention
-
- 26 Jan, 2009 1 commit
-
-
Mark Olesen authored
- set() handles overflow as max_value() - the principle of least surprise. - use pointers in iterator to avoid any assignment issues. Allows default bitwise copy/assignment.
-