Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::array< unsigned char, N > Class Template Reference

#include <array.hpp>

Public Types

typedef unsigned char T
 

Public Member Functions

 array ()
 
Tbegin ()
 
const Tbegin () const
 
const Tend () const
 
size_t size () const
 
Tat (size_t pos)
 
const Tat (size_t pos) const
 

Public Attributes

T data [N]
 

Detailed Description

template<size_t N>
class fc::array< unsigned char, N >

provided for default 0 init

Definition at line 42 of file array.hpp.

Member Typedef Documentation

◆ T

template<size_t N>
unsigned char fc::array< unsigned char, N >::T

Definition at line 45 of file array.hpp.

Constructor & Destructor Documentation

◆ array()

template<size_t N>
fc::array< unsigned char, N >::array ( )
inline

Definition at line 46 of file array.hpp.

46{ memset( data, 0, sizeof(data) ); }
memset(pInfo->slotDescription, ' ', 64)
Here is the call graph for this function:

Member Function Documentation

◆ at() [1/2]

template<size_t N>
T & fc::array< unsigned char, N >::at ( size_t pos)
inline

Checked indexing (when in debug build) that also simplifies dereferencing when you have an array<T,N>*.

Definition at line 52 of file array.hpp.

52{ FC_ASSERT( pos < N, "array out-of-bounds" ); return data[pos]; }
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
const int N
Definition quantize.cpp:54

◆ at() [2/2]

template<size_t N>
const T & fc::array< unsigned char, N >::at ( size_t pos) const
inline

Definition at line 53 of file array.hpp.

53{ FC_ASSERT( pos < N, "array out-of-bounds" ); return data[pos]; }

◆ begin() [1/2]

template<size_t N>
T * fc::array< unsigned char, N >::begin ( )
inline

Definition at line 56 of file array.hpp.

56{ return &data[0]; }

◆ begin() [2/2]

template<size_t N>
const T * fc::array< unsigned char, N >::begin ( ) const
inline

Definition at line 57 of file array.hpp.

57{ return &data[0]; }

◆ end()

template<size_t N>
const T * fc::array< unsigned char, N >::end ( ) const
inline

Definition at line 58 of file array.hpp.

58{ return &data[N]; }

◆ size()

template<size_t N>
size_t fc::array< unsigned char, N >::size ( ) const
inline

Definition at line 60 of file array.hpp.

60{ return N; }

Member Data Documentation

◆ data

template<size_t N>
T fc::array< unsigned char, N >::data[N]

Definition at line 62 of file array.hpp.


The documentation for this class was generated from the following file: