Gemmi C++ API
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
gemmi::cif::Table Struct Reference

#include <cifdoc.hpp>

Classes

struct  iterator
 
struct  Row
 

Public Member Functions

Loopget_loop ()
 
bool ok () const
 
size_t width () const
 
size_t length () const
 
size_t size () const
 
bool has_column (int n) const
 
int first_of (int n1, int n2) const
 
Row tags ()
 
Row operator[] (int n)
 
void at_check (int &n)
 
Row at (int n)
 
Row one ()
 
std::string get_prefix () const
 
Row find_row (const std::string &s)
 
template<typename T >
void append_row (T new_values)
 
void append_row (std::initializer_list< std::string > new_values)
 
void remove_row (int row_index)
 
void remove_rows (int start, int end)
 
Column column_at_pos (int pos)
 
Column column (int n)
 
void move_row (int old_pos, int new_pos)
 
int find_column_position (const std::string &tag) const
 
Column find_column (const std::string &tag)
 
void erase ()
 
void convert_pair_to_loop ()
 
iterator begin ()
 
iterator end ()
 

Public Attributes

Itemloop_item
 
Blockbloc
 
std::vector< intpositions
 
size_t prefix_length
 

Detailed Description

Definition at line 283 of file cifdoc.hpp.

Member Function Documentation

◆ get_loop()

Loop * gemmi::cif::Table::get_loop ( )
inline

Definition at line 722 of file cifdoc.hpp.

◆ ok()

bool gemmi::cif::Table::ok ( ) const
inline

Definition at line 350 of file cifdoc.hpp.

◆ width()

size_t gemmi::cif::Table::width ( ) const
inline

Definition at line 351 of file cifdoc.hpp.

◆ length()

size_t gemmi::cif::Table::length ( ) const
inline

Definition at line 726 of file cifdoc.hpp.

◆ size()

size_t gemmi::cif::Table::size ( ) const
inline

Definition at line 353 of file cifdoc.hpp.

◆ has_column()

bool gemmi::cif::Table::has_column ( int  n) const
inline

Definition at line 354 of file cifdoc.hpp.

◆ first_of()

int gemmi::cif::Table::first_of ( int  n1,
int  n2 
) const
inline

Definition at line 355 of file cifdoc.hpp.

◆ tags()

Row gemmi::cif::Table::tags ( )
inline

Definition at line 356 of file cifdoc.hpp.

◆ operator[]()

Row gemmi::cif::Table::operator[] ( int  n)
inline

Definition at line 357 of file cifdoc.hpp.

◆ at_check()

void gemmi::cif::Table::at_check ( int n)
inline

Definition at line 359 of file cifdoc.hpp.

◆ at()

Row gemmi::cif::Table::at ( int  n)
inline

Definition at line 365 of file cifdoc.hpp.

◆ one()

Row gemmi::cif::Table::one ( )
inline

Definition at line 370 of file cifdoc.hpp.

◆ get_prefix()

std::string gemmi::cif::Table::get_prefix ( ) const
inline

Definition at line 376 of file cifdoc.hpp.

◆ find_row()

Table::Row gemmi::cif::Table::find_row ( const std::string &  s)
inline

Definition at line 730 of file cifdoc.hpp.

◆ append_row() [1/2]

template<typename T >
void gemmi::cif::Table::append_row ( T  new_values)

Definition at line 742 of file cifdoc.hpp.

◆ append_row() [2/2]

void gemmi::cif::Table::append_row ( std::initializer_list< std::string >  new_values)
inline

Definition at line 387 of file cifdoc.hpp.

◆ remove_row()

void gemmi::cif::Table::remove_row ( int  row_index)
inline

Definition at line 390 of file cifdoc.hpp.

◆ remove_rows()

void gemmi::cif::Table::remove_rows ( int  start,
int  end 
)
inline

Definition at line 757 of file cifdoc.hpp.

◆ column_at_pos()

Column gemmi::cif::Table::column_at_pos ( int  pos)
inline

Definition at line 772 of file cifdoc.hpp.

◆ column()

Column gemmi::cif::Table::column ( int  n)
inline

Definition at line 393 of file cifdoc.hpp.

◆ move_row()

void gemmi::cif::Table::move_row ( int  old_pos,
int  new_pos 
)
inline

Definition at line 400 of file cifdoc.hpp.

◆ find_column_position()

int gemmi::cif::Table::find_column_position ( const std::string &  tag) const
inline

Definition at line 408 of file cifdoc.hpp.

◆ find_column()

Column gemmi::cif::Table::find_column ( const std::string &  tag)
inline

Definition at line 420 of file cifdoc.hpp.

◆ erase()

void gemmi::cif::Table::erase ( )
inline

Definition at line 778 of file cifdoc.hpp.

◆ convert_pair_to_loop()

void gemmi::cif::Table::convert_pair_to_loop ( )
inline

Definition at line 790 of file cifdoc.hpp.

◆ begin()

iterator gemmi::cif::Table::begin ( )
inline

Definition at line 438 of file cifdoc.hpp.

◆ end()

iterator gemmi::cif::Table::end ( )
inline

Definition at line 439 of file cifdoc.hpp.

Member Data Documentation

◆ loop_item

Item* gemmi::cif::Table::loop_item

Definition at line 284 of file cifdoc.hpp.

◆ bloc

Block& gemmi::cif::Table::bloc

Definition at line 285 of file cifdoc.hpp.

◆ positions

std::vector<int> gemmi::cif::Table::positions

Definition at line 286 of file cifdoc.hpp.

◆ prefix_length

size_t gemmi::cif::Table::prefix_length

Definition at line 287 of file cifdoc.hpp.


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