Go to the documentation of this file.
35 template<
class T,
class MemorySpace =
void>
163 if(&rhs ==
this)
return *
this;
190 this->
fill(span, val);
213 template<
class T,
class MemorySpace>
224 template<
typename T,
typename MemorySpace>
243 #endif //__Field_hpp__
INLINE_FUNCTION_H void fill(const T &val)
Fill the range [0,size) with val.
Field(const word &name, const word &fieldKey, size_t len)
Construct a field with name and fieldKey and specified len.
#define fatalExit
Fatal exit.
void fillField(const T &val)
Field()
construct an empty Filed with default fieldKey
word fieldKey() const
return field key
Field< T, MemorySpace > FieldType
Field(const word &name, const word &fieldKey, size_t capacity, size_t len, RESERVE)
Construct a field with name, fieldKey, capacity and len.
typename viewType::memory_space memory_space
typename VectorType::const_pointer const_pointer
typename viewType::execution_space execution_space
INLINE_FUNCTION_H word name() const
Name of the vector.
bool write(iOstream &os) const
Interface class for any input stream
typename VectorType::value_type value_type
Field(const word &name, const word &fieldKey, size_t len, const T &val)
Construct a field with name, fieldKey and set length to len and value to val.
TypeInfoTemplateNV111("Field", T, VectorType::memoerySpaceName())
type info
typename VectorType::const_reference const_reference
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
typename VectorType::const_iterator const_iterator
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
Field(const word &fieldKey, const Vector< T > &vec)
Construct a field with fieldKey and Vector vec.
virtual const word & name() const
Return the name of the stream.
FieldType & operator=(const FieldType &rhs)
Copy assignment, name and fieldKey on the left hand side are preserved.
typename VectorType::pointer pointer
static constexpr const char * memoerySpaceName()
Name of the memory space.
Field(const word &name, const word &fieldKey, size_t capacity, size_t len, const T &val)
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
INLINE_FUNCTION_H uint32 capacity() const
Field(const word &name, const word &fieldKey)
Construct an empty field with name and fieldKey.
int32 lineNumber() const
Const access to the current stream line number.
typename VectorType::iterator iterator
typename VectorType::memory_space memory_space
VectorSingle & operator=(const VectorSingle &rhs)
Copy assignment (perform deep copy from rhs to *this)
Interface class for any output stream.
Field(const word &name, const word &fieldKey, const FieldType &src)
Copy construct with new name and fieldkey.
const T & const_reference
typename VectorType::execution_space execution_space
typename VectorType::reference reference
void fillField(rangeU32 span, const T &val)
Field(const word &name, const word &fieldKey, const std::vector< T > &vec)
Construct a field with name and fieldKey and std::vector.
Field(const word &name, const word &fieldKey, const Vector< T > &vec)
Construct a field with name, fieldKey and Vector vec.