The Vish Visualization Shell 0.3
Vish
Public Types | List of all members
MemCore::TypedChunkBase< T > Class Template Referenceabstract

The abstract base class for chunks that have a certain type. More...

#include <elementary/memcore/Chunk.hpp>

Inheritance diagram for MemCore::TypedChunkBase< T >:
MemCore::ChunkBase MemCore::ReferenceBase< ChunkBase >

Public Types

typedef T value_type
 The type associated with this class.
 
- Public Types inherited from MemCore::ReferenceBase< ChunkBase >
using reference_domain_t = ChunkBase
 The type of the base class.
 
using SelfPtr_t = WeakPtr< ChunkBase, ChunkBase >
 Type for a pointer to this object itself.
 

Additional Inherited Members

- Public Member Functions inherited from MemCore::ChunkBase
 ChunkBase ()
 Constructor.
 
virtual const void * const_data_ptr () const =0
 Get a void pointer to the memory storage location.
 
virtual void * data_ptr ()=0
 Get a const void pointer to the memory storage location.
 
virtual size_t elements () const =0
 How many elements are stored here?
 
virtual const type_info & getType () const =0
 Return the type id for the elements stored here.
 
size_t memsize () const
 How much memory is occupied here at all by the entire chunk?
 
size_t nElements () const
 How many elements are stored here? (alias to elements() )
 
virtual int value_type_size () const =0
 How many bytes occupies one value type?
 
- Public Member Functions inherited from MemCore::ReferenceBase< ChunkBase >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< ChunkBase, ChunkBase > &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 (ChunkBase *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.
 
- Protected Member Functions inherited from MemCore::ChunkBase
virtual ~ChunkBase ()
 Destructor.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< ChunkBase >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Detailed Description

template<typename T>
class MemCore::TypedChunkBase< T >

The abstract base class for chunks that have a certain type.

Any chunk will be derived from a TypedChunkBase<>, which is instantiated over the base class (if it has) or the type itself. It will serve as a base class for TypedChunk's.