|
|
memsize_t | memsize () const override |
| | Ask how many bytes this object occupies.
|
| |
|
| Cacheable (const WeakPtr< Creature > &C) |
| | Constructor.
|
| |
| virtual void | DeferredConstructor () |
| | A virtual function that is called on the first strong referencing of a Cacheable object.
|
| |
|
bool | isCached () const |
| | Check whether this object is managed by a cache queue.
|
| |
|
bool | isUncached () const |
| | Check whether this object is managed by a cache queue.
|
| |
| bool | markAsUsed () |
| | Mark this data object as being recently used.
|
| |
|
WeakPtr< CacheBase > | myCache () const |
| | Return the associated Cache object as known from the associated Creator, if any.
|
| |
|
const WeakPtr< Creature > & | myCreator () const |
| | Return the associated Creator, if any.
|
| |
| int | NumberOfListEntries () const |
| | Count the number of entries here.
|
| |
| void | PreDestructor () |
| | This class uses a predestructor to remove itself's size from the cache queue.
|
| |
| void | push_back (CacheQueue &Q) |
| | Put the current item onto the BACK of the given cache queue.
|
| |
| void | push_front (CacheQueue &Q) |
| | Put the current item onto the FRONT of the given cache queue.
|
| |
|
void | setCreator (const WeakPtr< Creature > &C) |
| | Set and the creator.
|
| |
| auto | getObjectCountID () const noexcept |
| | Get a unique ID for this object in the given domain.
|
| |
|
bool | isIdentical (const WeakPtr< Cacheable, Cacheable > &PossibleSelf) const noexcept |
| | Check if this object is identical to the one used by the given pointer.
|
| |
| void | mkAutoDestructive () |
| | Marks this object as being automatically destructed, e.g.
|
| |
|
refcount_t | refcount () const noexcept |
| | The strong reference count.
|
| |
|
| ReferenceBase (Cacheable *that) noexcept |
| | Constructor, initializes reference counter to zero.
|
| |
| const auto & | self () const |
| | Return weak pointer to the object self.
|
| |
|
refcount_t | wrefcount () const noexcept |
| | The weak reference count.
|
| |
|
bool | end_compile () throw () |
| | Return false if the list could not be compiled, in particular when GL is out of memory.
|
| |
|
GLuint | nlists () const throw () |
| | Gives the number of lists that have been constructed here.
|
| |
|
| Ageable () noexcept |
| | Constructor; remembers birth time from current time counter.
|
| |
|
constexpr | Ageable (age_t t) noexcept |
| | Constructor with explicit time value.
|
| |
|
constexpr | Ageable (const Ageable &A) noexcept |
| | Copy constructor.
|
| |
|
| Ageable (const volatile Ageable &A) noexcept |
| | Copy constructor.
|
| |
|
constexpr const Ageable & | getAge () const |
| | Return reference to this age, useful for derived classes.
|
| |
|
bool | isNewerThan (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | isOlderThan (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | isYoungerThan (const Ageable &a) const noexcept |
| | Comparison operator (alias to isNewerThan() )
|
| |
|
bool | operator!= (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | operator< (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | operator<= (const Ageable &a) const noexcept |
| | Comparision operator.
|
| |
|
bool | operator<= (const volatile Ageable &a) const volatile noexcept |
| | Comparision operator.
|
| |
|
bool | operator== (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | operator> (const Ageable &a) const noexcept |
| | Comparison operator.
|
| |
|
bool | operator> (const volatile Ageable &a) const volatile throw () |
| | Comparision operator.
|
| |
|
bool | operator>= (const Ageable &a) const noexcept |
| | Comparision operator.
|
| |
|
bool | operator>= (const volatile Ageable &a) const volatile noexcept |
| | Comparison operator.
|
| |
|
constexpr void | resetAge () noexcept |
| | Set time value to InfinitelyOld().
|
| |
|
void | setInfinitelyNew () noexcept |
| | Set time value to InfinitelyOld().
|
| |
|
age_t | time_value () const noexcept |
| | Return an object's current age.
|
| |
|
age_t | time_value () const volatile noexcept |
| | Return an object's current age.
|
| |
| Ageable & | touch () noexcept |
| | Mark the current object as being modified "now".
|
| |
|
age_t | update (age_t age) noexcept |
| | Set the age of the current object to a specific age if that is newer than the current one.
|
| |
|
age_t | update (const Ageable &Other) noexcept |
| | Set the age of the current object to the age of another object if that other one is newer than the current one.
|
| |
|
age_t | update (const volatile Ageable &Other) volatile noexcept |
| | Set the age of the current object to the age of another object if that other one is newer than the current one.
|
| |
|
| ~Ageable () noexcept |
| | Destructor.
|
| |
|
|
using | cachecounter_t = unsigned long |
| | The type to store repeated accesses to a cached object.
|
| |
|
using | reference_domain_t = Cacheable |
| | The type of the base class.
|
| |
|
using | SelfPtr_t = WeakPtr< Cacheable, Cacheable > |
| | Type for a pointer to this object itself.
|
| |
| static const Ageable & | InfinitelyNew () noexcept |
| | Return a time that is infinitely in the future (well, sort of).
|
| |
| static constexpr const Ageable & | InfinitelyOld () noexcept |
| | Return a time that is infinitely in the past (well, sort of).
|
| |
|
static age_t | now () noexcept |
| | Return the current global time.
|
| |
| void | adjustCacheableSize (memsize_t memDiff) |
| | In case this object changes its size after insertion to the CacheQueue, call this function to adjust.
|
| |
|
| ~Cacheable () |
| | Destructor.
|
| |
| virtual void | extremeUnction () |
| | A virtual function that will be called just before the object is destroyed.
|
| |
| ReferenceBase & | operator= (const ReferenceBase &R) |
| | Protected assignment operator (should not be called).
|
| |
|
void | suicide () |
| | Delete this.
|
| |
|
virtual | ~ReferenceBase () |
| | Virtual destructor.
|
| |