B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Engine::MemBlock< T > Class Template Reference

Represents reference to the memory block. More...

#include <B2BITS_String.h>

Public Types

typedef T value_type
 Provides access to the template parameter. More...
 

Public Member Functions

value_type const * begin () const throw ()
 Returns pointer to first character. More...
 
int compareTo (MemBlock rv) const throw ()
 Compares two MemBlock. More...
 
value_type const * data () const throw ()
 Returns pointer to the first character of the block. More...
 
value_type const * end () const throw ()
 Returns pointer to the next after last character. More...
 
 MemBlock (const value_type *aData, size_t aSize) throw ()
 Constructor Constructs instance from address to memory and size. More...
 
 MemBlock () throw ()
 Default constructor. More...
 
value_type const & operator[] (size_t index) const throw ()
 Indexer. More...
 
size_t size () const throw ()
 Returns size of the block. More...
 

Detailed Description

template<typename T>
class Engine::MemBlock< T >

Represents reference to the memory block.

Object does not own stored memory block.

Member Typedef Documentation

template<typename T>
typedef T Engine::MemBlock< T >::value_type

Provides access to the template parameter.

Constructor & Destructor Documentation

template<typename T>
Engine::MemBlock< T >::MemBlock ( const value_type aData,
size_t  aSize 
)
throw (
)
inline

Constructor Constructs instance from address to memory and size.

Parameters
dataaddress to the block
sizesize of the block
template<typename T>
Engine::MemBlock< T >::MemBlock ( )
throw (
)
inline

Default constructor.

Member Function Documentation

template<typename T>
value_type const* Engine::MemBlock< T >::begin ( ) const
throw (
)
inline

Returns pointer to first character.

template<typename T>
int Engine::MemBlock< T >::compareTo ( MemBlock< T >  rv) const
throw (
)
inline

Compares two MemBlock.

Returns
The return value indicates the relationship between the buffers.

Referenced by Engine::BasicString< CharType >::compareTo(), and Engine::operator<().

template<typename T>
value_type const* Engine::MemBlock< T >::data ( ) const
throw (
)
inline
template<typename T>
value_type const* Engine::MemBlock< T >::end ( ) const
throw (
)
inline

Returns pointer to the next after last character.

template<typename T>
value_type const& Engine::MemBlock< T >::operator[] ( size_t  index) const
throw (
)
inline

Indexer.

template<typename T>
size_t Engine::MemBlock< T >::size ( ) const
throw (
)
inline