Public Member Functions | Protected Attributes | Private Member Functions

ArrayNDFileStor< T > Class Template Reference

Inheritance diagram for ArrayNDFileStor< T >:
ValueSeries< T >

List of all members.

Public Member Functions

bool isOK () const
value (int64_t pos) const
void setValue (int64_t pos, T val)
const T * arr () const
T * arr ()
bool setSize (int64_t nsz)
int64_t size () const
 ArrayNDFileStor (int64_t nsz)
 ArrayNDFileStor ()
 ~ArrayNDFileStor ()
void setTempStorageDir (const char *dir)

Protected Attributes

std::fstream * strm_
BufferString name_
int64_t sz_
bool openfailed_
bool streamfail_
Threads::Mutex mutex_

Private Member Functions

void open ()
void close ()

template<class T>
class ArrayNDFileStor< T >


Constructor & Destructor Documentation

template<class T >
ArrayNDFileStor< T >::ArrayNDFileStor ( int64_t  nsz  )  [inline]
template<class T >
ArrayNDFileStor< T >::ArrayNDFileStor (  )  [inline]
template<class T >
ArrayNDFileStor< T >::~ArrayNDFileStor (  )  [inline]

Member Function Documentation

template<class T >
const T* ArrayNDFileStor< T >::arr (  )  const [inline, virtual]

Reimplemented from ValueSeries< T >.

template<class T >
T* ArrayNDFileStor< T >::arr (  )  [inline, virtual]

Reimplemented from ValueSeries< T >.

template<class T >
void ArrayNDFileStor< T >::close (  )  [inline, private]
template<class T >
bool ArrayNDFileStor< T >::isOK (  )  const [inline, virtual]

Reimplemented from ValueSeries< T >.

template<class T >
void ArrayNDFileStor< T >::open (  )  [inline, private]
template<class T >
bool ArrayNDFileStor< T >::setSize ( int64_t  nsz  )  [inline, virtual]

Reimplemented from ValueSeries< T >.

template<class T >
void ArrayNDFileStor< T >::setTempStorageDir ( const char *  dir  )  [inline]
template<class T >
void ArrayNDFileStor< T >::setValue ( int64_t  pos,
val 
) [inline, virtual]

Reimplemented from ValueSeries< T >.

template<class T >
int64_t ArrayNDFileStor< T >::size (  )  const [inline]
template<class T >
T ArrayNDFileStor< T >::value ( int64_t  pos  )  const [inline, virtual]

Implements ValueSeries< T >.


Member Data Documentation

template<class T >
Threads::Mutex ArrayNDFileStor< T >::mutex_ [mutable, protected]
template<class T >
BufferString ArrayNDFileStor< T >::name_ [protected]
template<class T >
bool ArrayNDFileStor< T >::openfailed_ [protected]
template<class T >
bool ArrayNDFileStor< T >::streamfail_ [protected]
template<class T >
std::fstream* ArrayNDFileStor< T >::strm_ [protected]
template<class T >
int64_t ArrayNDFileStor< T >::sz_ [protected]