43 if (coli && sep)
os << sep;
62 if (coli && sep)
os << sep;
73 #define doLocalCode(Type) \
75 Type##Names_.clear(); \
76 Type##Fields_.clear(); \
94 #define doLocalCode(Type) \
95 ncol += (Type##Fields_.size() * pTraits<Type>::nComponents);
133 #define doLocalCode(Type) \
135 for (const auto& fld : Type##Fields_) \
137 const auto& val = fld[pointi]; \
138 for (direction d=0; d < pTraits<Type>::nComponents; ++d) \
140 buf.append(component(val, d)); \
169 const label npts = coords.
size();
170 const label ncomp = nDataColumns();
174 for (label pointi = 0; pointi < npts; ++pointi)
176 getBufferLine(compCols, coords, pointi);
177 writeLine(
os, compCols, sep);
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
void getBufferLine(DynamicList< scalar > &buf, const coordSet &coords, const label pointi) const
Get buffered data line (components)
void writeBufferContents(Ostream &os, const coordSet &coords, const char *sep) const
Write buffered data.
label nDataColumns() const
The number of buffer data columns, after splitting into components.
virtual bool buffering() const
True if the format uses internal buffering (eg, column output)
virtual bool writeBuffered()
Write buffered data.
void clearBuffers()
Clear out buffering.
static void writeLine(Ostream &, const UList< word > &, const char *sep)
Write line contents (eg, buffered)
Holds list of sampling positions.
const vector & vectorCoord(const label index) const
Get point according to axis="xyz" specification.
bool hasVectorAxis() const noexcept
True if axis specification is a vector.
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.
OBJstream os(runTime.globalPath()/outputName)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
#define doLocalCode(GeoField)