Block< const Byte, false, false > Class Reference

#include <block.h>

Inheritance diagram for Block< const Byte, false, false >:

Public Member Functions

 Block ()
 
 Block (const Block &src)=default
 
Blockoperator= (const Block &src)=default
 
 Block (const void *ptr, Int size, Int stride=1)
 
 Block (const Block< Byte > &src)
 
template<typename ANY >
 Block (const ANY *ptr, Int size, Int stride=1)
 
template<typename ANY >
 Block (const Block< ANY > &src)
 
template<typename ANY , Int N>
MAXON_IMPLICIT Block (ANY(&array)[N])
 
- Public Member Functions inherited from Block< const Char, false, false >
 Block ()
 
 Block (const Char *ptr, Int size, Int stride=(STRIDED &&GENERIC) ? -1 :SIZEOF(StrideType))
 
 Block (Iterator start, Int size, Int stride=(STRIDED &&GENERIC) ? -1 :SIZEOF(StrideType))
 
 Block (ConstIterator start, Int size, Int stride=(STRIDED &&GENERIC) ? -1 :SIZEOF(StrideType))
 
MAXON_IMPLICIT Block (const Char(&array)[N])
 
MAXON_IMPLICIT Block (const std::initializer_list< typename std::remove_const< const Char >::type > &list)
 
 Block (const Block &src)=default
 
Blockoperator= (const Block &src)=default
 
Result< void > CopyFrom (const Block &src)=delete
 
 operator ArrayImpl< Block & > ()=delete
 
 operator ArrayImpl< const Block & > () const=delete
 
Int GetStride () const
 
Bool IsStrided () const
 
void Set (const Char *ptr, Int size, Int stride=(STRIDED &&GENERIC) ? -1 :SIZEOF(StrideType))
 
void Reset ()
 
 operator typename std::conditional< STRIDED, DummyReturnType, Block< const Char, true, MOVE >>::type () const
 
 operator typename std::conditional< STRIDED||STD_IS_REPLACEMENT (const, const Char)
 
const Block< const const Char, true, MOVE > type () const
 
volatile const Block< const const Char, STRIDED, MOVE > & type () const
 
const DummyReturnType Block< const const Char, true, false > type () const
 
volatile DummyReturnType const Block< const const Char, STRIDED, false > & type () const
 
 operator typename std::conditional< STD_IS_REPLACEMENT (const, const Char)
 
 operator typename std::conditional< STRIDED||!MOVE, DummyReturnType &, Block< const Char, true, false >>::type () const
 
 operator typename std::conditional< STRIDED||!MOVE||STD_IS_REPLACEMENT (const, const Char)
 
 operator typename std::conditional<!MOVE||STD_IS_REPLACEMENT (const, const Char)
 
 operator typename std::conditional<!MOVE, const volatile DummyReturnType &, const Block< const Char, STRIDED, false > & >::type () const
 
 operator typename std::conditional< GENERIC, const volatile DummyReturnType, const Block< typename InheritConst< Generic, const Char >::type, STRIDED > & >::type () const
 
const CharGetFirst () const
 
void SetFirst (const Char *value)
 
const CharGetLast () const
 
const Charoperator[] (Int index) const
 
Block Slice (Int start) const
 
Block Slice (Int start, Int end) const
 
Bool StartsWith (const Block &prefix) const
 
Iterator Begin () const
 
Iterator End () const
 
Int GetCapacityCount () const
 
Result< void > CopyValuesFrom (const Block< T2, S2 > &other)
 
Result< void > CopyValuesFrom (const COLLECTION &other)
 
Int GetMemorySize () const
 
Int GetBlock (Int index, Block< const const Char, false > &block) const
 
Int GetBlock (Int index, Block< const Char, false > &block)
 
Int GetBlock (Int index, StridedBlock< const Char > &block)
 
Int GetBlock (Int index, StridedBlock< const const Char > &block) const
 

Private Types

using Super = Block< const Char, false, false >
 

Additional Inherited Members

- Public Types inherited from Block< const Char, false, false >
using Super = ArrayBase< Block< const Char, STRIDED, MOVE >, const Char, BlockBase< const Char, STRIDED >, DefaultCompare >
 
using StrideType = typename std::conditional< GENERIC, Char, const Char >::type
 
using IsBlock = std::true_type
 
using Iterator = BaseIterator< Block, STRIDED >
 
using ConstIterator = BaseIterator< const Block, STRIDED >
 
- Static Public Member Functions inherited from Block< const Char, false, false >
static const BlockNullValueRef ()
 
- Public Attributes inherited from Block< const Char, false, false >
const DummyReturnType
 
volatile DummyReturnType
 
- Static Public Attributes inherited from Block< const Char, false, false >
static const Bool GENERIC
 

Member Typedef Documentation

◆ Super

using Super = Block<const Char, false, false>
private

Constructor & Destructor Documentation

◆ Block() [1/7]

Block ( )

◆ Block() [2/7]

Block ( const Block< const Byte, false, false > &  src)
default

◆ Block() [3/7]

Block ( const void *  ptr,
Int  size,
Int  stride = 1 
)

◆ Block() [4/7]

Block ( const Block< Byte > &  src)

◆ Block() [5/7]

Block ( const ANY *  ptr,
Int  size,
Int  stride = 1 
)

Constructs a block of const raw bytes using the given values.

Parameters
[in]ptrPointer to the first byte.
[in]sizeNumber of elements.
[in]strideElement stride. If the STRIDED parameter of the Block class is false, this has to be SIZEOF(T).

◆ Block() [6/7]

Block ( const Block< ANY > &  src)

◆ Block() [7/7]

MAXON_IMPLICIT Block ( ANY(&)  array[N])

Member Function Documentation

◆ operator=()

Block& operator= ( const Block< const Byte, false, false > &  src)
default