PSCF v1.2
|
A Record represents a string of fields separated by whitespace. More...
Public Member Functions | |
__init__ (self, line) | |
Constructor. | |
__str__ (self) | |
String representation - line from which Record was constructed. | |
A Record represents a string of fields separated by whitespace.
The constructor of this class takes a line of text containing fields separated by white spaces and divides it into fields and white space strings.
Data attributes: line - original string (usually a complete line) fields - list in which fields[i] is field string number i spaces - list in which spaces[i] is white space preceding field i
The element space[i] is the string of blank characters that precedes field[i], for i >= 0. The space[0] may contain zero characters, if the line has no leading blank spaces, but all other elements must contain one or more blank characters. Trailing white space is disregarded.
pscfpp.text.Record.__init__ | ( | self, | |
line ) |
Constructor.
line | string containing fields separated by white space |
Reimplemented in pscfpp.command.Command.
Definition at line 97 of file text.py.
References Pscf::Rpc::FieldState< D, FT >.fields(), Pscf::Rpc::FieldState< D, FT >.fields(), Pscf::Rpc::FieldState< D, DArray< double > >.fields(), Pscf::Rpc::FieldState< D, DArray< double > >.fields(), Pscf::Rpg::FieldState< D, FT >.fields(), Pscf::Rpg::FieldState< D, FT >.fields(), Pscf::Rpg::FieldState< D, DArray< double > >.fields(), Pscf::Rpg::FieldState< D, DArray< double > >.fields(), pscfpp.command.Command.fields, pscfpp.text.Record.fields, pscfpp.text.Record.line, Pscf::Homogeneous::Clump.size(), Pscf::Homogeneous::Molecule.size(), Pscf::Mesh< D >.size(), Pscf::MeshIteratorFortran< D >.size(), Pscf::Prdc::Basis< D >::Star.size, Pscf::Prdc::SymmetryGroup< Symmetry >.size(), Pscf::Prdc::SymmetryGroup< SpaceSymmetry< D > >.size(), Pscf::SolventDescriptor.size(), Pscf::Vertex.size(), pscfpp.file.File.size, pscfpp.text.Record.size, Util::ArrayStack< Data >.size(), Util::DSArray< Data >.size(), Util::FArray< Data, Capacity >.size(), Util::FArray< Data, 2 >.size(), Util::FArray< double, 6 >.size(), Util::FArray< int, 2 >.size(), Util::FArray< Propagator, 2 >.size(), Util::FArray< Pscf::RealVec< D >, D >.size(), Util::FArray< Rational, D >.size(), Util::FArray< Type, Capacity >.size(), Util::FArray< Util::Average, Dimension *(Dimension+1)/2 >.size(), Util::FArray< Util::Average, Dimension *Dimension >.size(), Util::FArray< Util::FMatrix< double, D, D >, 6 >.size(), Util::FPArray< Data, Capacity >.size(), Util::FSArray< T, N >.size(), Util::FSArray< bool, 6 >.size(), Util::FSArray< double, 6 >.size(), Util::FSArray< Type, Capacity >.size(), Util::GArray< Data >.size(), Util::GArray< int >.size(), Util::GArray< Propagator const * >.size(), Util::GArray< Propagator< D > const * >.size(), Util::GArray< Pscf::ParameterType >.size(), Util::GArray< Pscf::Prdc::Basis::Star >.size(), Util::GArray< Rational >.size(), Util::GArray< TP const * >.size(), Util::GArray< Util::AutoCorrStage< Data, Product > * >.size(), Util::GArray< Util::Pair< int > >.size(), Util::Grid.size(), Util::GridArray< Data >.size(), Util::GStack< Data >.size(), Util::List< Data >.size(), Util::Manager< Data >.size(), Util::Manager< Analyzer< D > >.size(), Util::Manager< McMove< D > >.size(), Util::MemoryCounter.size(), Util::PArray< Data >.size(), Util::RingBuffer< Data >.size(), Util::RingBuffer< DArray< double > >.size(), Util::RingBuffer< DeviceArray< cudaReal > >.size(), Util::RingBuffer< FieldCUDA >.size(), Util::RingBuffer< T >.size(), Util::SSet< Data, Capacity >.size(), and pscfpp.text.Record.spaces.
pscfpp.text.Record.__str__ | ( | self | ) |
String representation - line from which Record was constructed.
Definition at line 131 of file text.py.
References Pscf::Rpc::FieldState< D, FT >.fields(), Pscf::Rpc::FieldState< D, FT >.fields(), Pscf::Rpc::FieldState< D, DArray< double > >.fields(), Pscf::Rpc::FieldState< D, DArray< double > >.fields(), Pscf::Rpg::FieldState< D, FT >.fields(), Pscf::Rpg::FieldState< D, FT >.fields(), Pscf::Rpg::FieldState< D, DArray< double > >.fields(), Pscf::Rpg::FieldState< D, DArray< double > >.fields(), pscfpp.command.Command.fields, pscfpp.text.Record.fields, Pscf::Homogeneous::Clump.size(), Pscf::Homogeneous::Molecule.size(), Pscf::Mesh< D >.size(), Pscf::MeshIteratorFortran< D >.size(), Pscf::Prdc::Basis< D >::Star.size, Pscf::Prdc::SymmetryGroup< Symmetry >.size(), Pscf::Prdc::SymmetryGroup< SpaceSymmetry< D > >.size(), Pscf::SolventDescriptor.size(), Pscf::Vertex.size(), pscfpp.file.File.size, pscfpp.text.Record.size, Util::ArrayStack< Data >.size(), Util::DSArray< Data >.size(), Util::FArray< Data, Capacity >.size(), Util::FArray< Data, 2 >.size(), Util::FArray< double, 6 >.size(), Util::FArray< int, 2 >.size(), Util::FArray< Propagator, 2 >.size(), Util::FArray< Pscf::RealVec< D >, D >.size(), Util::FArray< Rational, D >.size(), Util::FArray< Type, Capacity >.size(), Util::FArray< Util::Average, Dimension *(Dimension+1)/2 >.size(), Util::FArray< Util::Average, Dimension *Dimension >.size(), Util::FArray< Util::FMatrix< double, D, D >, 6 >.size(), Util::FPArray< Data, Capacity >.size(), Util::FSArray< T, N >.size(), Util::FSArray< bool, 6 >.size(), Util::FSArray< double, 6 >.size(), Util::FSArray< Type, Capacity >.size(), Util::GArray< Data >.size(), Util::GArray< int >.size(), Util::GArray< Propagator const * >.size(), Util::GArray< Propagator< D > const * >.size(), Util::GArray< Pscf::ParameterType >.size(), Util::GArray< Pscf::Prdc::Basis::Star >.size(), Util::GArray< Rational >.size(), Util::GArray< TP const * >.size(), Util::GArray< Util::AutoCorrStage< Data, Product > * >.size(), Util::GArray< Util::Pair< int > >.size(), Util::Grid.size(), Util::GridArray< Data >.size(), Util::GStack< Data >.size(), Util::List< Data >.size(), Util::Manager< Data >.size(), Util::Manager< Analyzer< D > >.size(), Util::Manager< McMove< D > >.size(), Util::MemoryCounter.size(), Util::PArray< Data >.size(), Util::RingBuffer< Data >.size(), Util::RingBuffer< DArray< double > >.size(), Util::RingBuffer< DeviceArray< cudaReal > >.size(), Util::RingBuffer< FieldCUDA >.size(), Util::RingBuffer< T >.size(), Util::SSet< Data, Capacity >.size(), and pscfpp.text.Record.spaces.
Referenced by pscfpp.field.Field.write(), pscfpp.output.State.write(), and pscfpp.output.Thermo.write().