Package rosetta :: Package utility :: Module _utility_
[hide private]
[frames] | no frames]

Module _utility_

Classes [hide private]
  CSI_Sequence
Class to hold all Terminal ASCII codes as static data for CSI_Sequence.
  CSI_SequenceAP
  CSI_SequenceCAP
  IOStream
  Inline_File_Provider
utility/inline_file_provider.hh:45
  Inline_File_ProviderAP
  Inline_File_ProviderCAP
  Inline_File_Provider_Hook
utility/inline_file_provider.hh:38
  Inline_File_Provider_HookAP
  Inline_File_Provider_HookCAP
  LexicographicalIterator
utility/LexicographicalIterator.hh:32
  LexicographicalIteratorAP
  LexicographicalIteratorCAP
  OStream
  OStringStream
  Show
utility/Show.hh:28
  ShowAP
  ShowCAP
  SimulateMPI
singleton class storing simulated MPI state
  SimulateMPIAP
  SimulateMPICAP
  SimulateMPIData
utility/SimulateMPI.hh:98
  SimulateMPIDataAP
  SimulateMPIDataCAP
  SimulateMPIMessage
utility/SimulateMPI.hh:54
  SimulateMPIMessageAP
  SimulateMPIMessageCAP
  SingletonBase_T_utility_Inline_File_Provider_T
SingletonBase is meant to serve as a base class for singleton classes in Rosetta handling the initialization of the singleton in a thread-safe way.
  SingletonBase_T_utility_Inline_File_Provider_TAP
  SingletonBase_T_utility_Inline_File_Provider_TCAP
  StringStream
  __CPP_Inline_File_Provider_Hook__
  __CPP_Show__
  __utility_SingletonBase_utility_Inline_File_Provider__
  heap
utility/heap.hh:32
  heapAP
  heapCAP
  history_queue_struct
utility/recent_history_queue.hh:35
  history_queue_structAP
  history_queue_structCAP
  istream
Buffered istream wrapper for file objects.
  ostream
Buffered ostream wrapper for file objects.
  recent_history_queue
A class for keeping track of a subset of elements in a set that are pushed into a queue in a certain order, and which fall off the end of the queue in ther order in which they arrive.
  recent_history_queueAP
  recent_history_queueCAP
  set_Real
  set_SSize
  set_Size
  set_char
  set_double
  set_float
  set_int
  set_string
  set_uint
  simulate_mpi_message_type
@detail This is for unit testing mpi code in a single processor.
  std_istream
  std_ostream
  std_vector_Real
  std_vector_SSize
  std_vector_Size
  std_vector_char
  std_vector_double
  std_vector_float
  std_vector_int
  std_vector_string
  std_vector_uint
  subset_mapping
This class handles the bookeeping to map between a set of integer ids in the "source" enumeration to a subset of those ids -- the destination enumartion.
  subset_mappingAP
  subset_mappingCAP
  utility_vector1_boolAP
  utility_vector1_boolCAP
  vec1_vec1_Real
  vec1_vec1_SSize
  vec1_vec1_Size
  vec1_vec1_bool
  vec1_vec1_char
  vec1_vec1_double
  vec1_vec1_float
  vec1_vec1_int
  vec1_vec1_string
  vec1_vec1_uint
  vector0_T_float_std_allocator_T_float_T__T
utility/vector0.fwd.hh:44
  vector0_T_float_std_allocator_T_float_T__TAP
  vector0_T_float_std_allocator_T_float_T__TCAP
  vector0_T_int_std_allocator_T_int_T__T
utility/vector0.fwd.hh:44
  vector0_T_int_std_allocator_T_int_T__TAP
  vector0_T_int_std_allocator_T_int_T__TCAP
  vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T_std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T
std::vector with assert-checked bounds
  vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T_std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__TAP
  vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T_std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__TCAP
  vector0_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T_std_allocator_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T__T__T
std::vector with assert-checked bounds
  vector0_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T_std_allocator_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T__T__TAP
  vector0_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T_std_allocator_T_utility_vector0_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__std_allocator_T_std_list_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__std_allocator_T_boost_shared_ptr_T_utility_SimulateMPIMessage_T__T__T__T__T__T__TCAP
  vector1_Real
  vector1_SSize
  vector1_Size
  vector1_T_utility_history_queue_struct_std_allocator_T_utility_history_queue_struct_T__T
std::vector with 1-based indexing
  vector1_T_utility_history_queue_struct_std_allocator_T_utility_history_queue_struct_T__TAP
  vector1_T_utility_history_queue_struct_std_allocator_T_utility_history_queue_struct_T__TCAP
  vector1_bool
  vector1_char
  vector1_double
  vector1_float
  vector1_int
  vector1_string
  vector1_uint
  vectorL_IndexSelector_T_false_T
vectorL index type selector: Negative lower index specialization
  vectorL_IndexSelector_T_false_TAP
  vectorL_IndexSelector_T_false_TCAP
  vectorL_IndexSelector_T_true_T
vectorL index type selector: Nonnegative lower index non-specialization
  vectorL_IndexSelector_T_true_TAP
  vectorL_IndexSelector_T_true_TCAP
  vectorL_ZeroSelector_T_false_T
vectorL lower index zero selector: Zero lower index specialization
  vectorL_ZeroSelector_T_false_TAP
  vectorL_ZeroSelector_T_false_TCAP
Functions [hide private]
 
ReadFromFileOrDie(...)
ReadFromFileOrDie( (str)filename, (str)contents) -> None : Reads the contents of <filename> into <contents>, preserving newline characters.
int :
__static_int_test()
C++ signature :...
str :
__static_string_test()
C++ signature :...
 
add_spaces_left_align(...)
add_spaces_left_align( (str)st, (int)newlen) -> None : adds spaces to a left aligned string until a given length is reached
 
add_spaces_right_align(...)
add_spaces_right_align( (str)st, (int)newlen) -> None : adds spaces to a right aligned string until a given length is reached
 
code_from_6bit(...)
code_from_6bit( (int)_8bit) -> int : utility/Binary_Util.hh:51
 
code_to_6bit(...)
code_to_6bit( (int)_6bit) -> int : ///////////////////////
 
copysign(...)
copysign( (float)x, (float)y) -> float : utility/numbers.hh:77
 
decode6bit(...)
decode6bit( (int)memory, (str)jar) -> int : utility/Binary_Util.hh:98
 
decode_32_to_24(...)
decode_32_to_24( (int)i0, (int)i1, (int)i2, (int)i3, (int)o0, (int)o1, (int)o2) -> None : utility/Binary_Util.hh:84
 
encode6bit(...)
encode6bit( (int)memory, (int)length, (str)jar) -> None : utility/Binary_Util.hh:95
 
encode_24_to_32(...)
encode_24_to_32( (int)i0, (int)i1, (int)i2, (int)o0, (int)o1, (int)o2, (int)o3) -> None : utility/Binary_Util.hh:68
 
endswith(...)
endswith( (str)haystack, (str)needle) -> bool : True iff haystack ends with needle
 
file_basename(...)
file_basename( (str)full_path) -> str : utility/string_util.hh:148
 
file_contents(...)
file_contents( (str)file_name) -> str : Read the entire contents of a file into a string.
 
filename(...)
filename( (str)path) -> str : utility/string_util.hh:152
 
get_num_digits(...)
get_num_digits( (int)value) -> int : utility/string_util.hh:307
 
get_resnum_and_chain(...)
get_resnum_and_chain( (str)s, (bool)string_is_ok) -> object : converts string like "1-3 20-22" or "A:1-5 B:20-22" to vectors containing resnums and chains.
 
get_resnum_and_chain_from_one_tag(...)
get_resnum_and_chain_from_one_tag( (str)tag, (std_vector_int)resnum, (std_vector_char)chains) -> bool : helper function for get_resnum_and_chain
float :
get_undefined_real()
Get a numeric value for Real that represents an "undefined" value
int :
get_undefined_size()
Get a numeric value for Size that represents an "undefined" value
 
is_false_string(...)
is_false_string( (str)value_str) -> bool : String accepted as a false value?
 
is_inf(...)
is_inf( (float)val) -> bool : utility/numbers.hh:67
 
is_nan(...)
is_nan( (float)val) -> bool : utility/numbers.hh:62
 
is_string_numeric(...)
is_string_numeric( (str)input) -> bool : utility/string_util.hh:142
 
is_true_string(...)
is_true_string( (str)value_str) -> bool : String accepted as a true value?
 
is_undefined(...)
is_undefined( (float)val) -> bool : Check if a Real is undefined (i.e has the same value as utility::get_undefined_real() )
 
join(...)
join( (str)string_w_spaces, (str)connector) -> str : join space separations in a string with a connector such as '_'
 
make_tag(...)
make_tag( (vector1_int)res_vector) -> str : utility/string_util.hh:293
 
make_tag_with_dashes(...)
make_tag_with_dashes( (vector1_int)res_vector, (vector1_char)chain_vector [, (str)delimiter=' ']) -> str : utility/string_util.hh:290
 
max(...)
max( (float)a, (float)b) -> float : max( long double, long double )
 
min(...)
min( (float)a, (float)b) -> float : min( long double, long double )
int :
mpi_nprocs()
utility/mpi_util.hh:35
int :
mpi_rank()
utility/mpi_util.hh:32
 
pathname(...)
pathname( (str)path) -> str : utility/string_util.hh:155
 
py_xdec_ref(...)
py_xdec_ref( (object)arg1) -> None :
 
py_xinc_ref(...)
py_xinc_ref( (object)arg1) -> None :
None :
rand_sleep()
utility/basic_sys_util.hh:34
 
receive_char_from_node(...)
receive_char_from_node( (int)source) -> str : Use MPI to receive a single char from a particular node.
 
receive_double_from_node(...)
receive_double_from_node( (int)source) -> float : Use MPI to receive a single double from a particular node.
 
receive_doubles_from_node(...)
receive_doubles_from_node( (int)source) -> vector1_Real : Use MPI to receive a vector of doubles from a particular node.
int :
receive_integer_from_anyone()
Use MPI to wait until some node sends an integer -- usually its own mpi_rank so that it can send further messages.
 
receive_integer_from_node(...)
receive_integer_from_node( (int)source) -> int : Use MPI to receive a single integer from a particular node.
 
receive_integers_from_node(...)
receive_integers_from_node( (int)source) -> vector1_int : Use MPI to receive a vector of integers from a particular node.
 
receive_string_from_node(...)
receive_string_from_node( (int)source) -> str : Use MPI to receive a string from a particular node.
 
replace_environment_variables(...)
replace_environment_variables( (str)input) -> str : find all environment variables with the form ${VARIABLE} and replace with the contents of that environment variable.
 
replace_in(...)
replace_in( (str)name_in, (str)find_string, (str)replace_string) -> str : find/replace strings within input string.
 
round(...)
round( (float)val) -> float : utility/numbers.hh:72
 
same_ignoring_spaces(...)
same_ignoring_spaces( (str)s1, (str)s2) -> bool : Compares two strings, ignoring spaces.
 
send_char_to_node(...)
send_char_to_node( (int)destination, (str)message) -> None : utility/mpi_util.hh:54
 
send_double_to_node(...)
send_double_to_node( (int)destination, (float)message) -> None : utility/mpi_util.hh:75
 
send_doubles_to_node(...)
send_doubles_to_node( (int)destination, (vector1_Real)message) -> None : utility/mpi_util.hh:82
 
send_integer_to_node(...)
send_integer_to_node( (int)destination, (int)message) -> None : utility/mpi_util.hh:61
 
send_integers_to_node(...)
send_integers_to_node( (int)destination, (vector1_int)message) -> None : utility/mpi_util.hh:68
 
send_string_to_node(...)
send_string_to_node( (int)source, (str)message) -> None : utility/mpi_util.hh:47
None :
set_pyexit_callback()
C++ signature :...
 
slurp(...)
slurp( (std_istream)in, (str)out) -> None : utility/string_util.hh:123
 
split(...)
split( (str)s) -> vector1_string : split given std::string using ' ' symbol.
 
split_to_list(...)
split_to_list( (str)s) -> object : split given std::string using ' ' symbol.
 
split_to_set(...)
split_to_set( (str)s) -> set_string : split given std::string to a set using ' ' symbol.
 
split_whitespace(...)
split_whitespace( (str)s) -> vector1_string : split given std::string using whitespace as a separator.
 
startswith(...)
startswith( (str)haystack, (str)needle) -> bool : True iff haystack starts with needle
 
string2Real(...)
string2Real( (str)st) -> float : convert a string to a Real, returns numeric::get_undefined_real() on failure
 
string2Size(...)
string2Size( (str)st) -> int : convert a string to a Size, returns numeric::get_undefined_size() on failure
 
string2float(...)
string2float( (str)st) -> float : convert a string to a float, returns -1 on failure
 
string2int(...)
string2int( (str)st) -> int : convert a string to an int, returns -1 on failure
 
string2uint(...)
string2uint( (str)x, (int)y) -> None : utility/string_util.hh:115
 
string_split(...)
string_split( (str)in [, (str)splitchar=' ']) -> vector1_string : split to vector1< std::string > using arbitrary split character
 
string_split_multi_delim(...)
string_split_multi_delim( (str)in [, (str)splitchars=' \t']) -> vector1_string : split to vector< std::string > using any of arbitrary split characters
 
string_split_simple(...)
string_split_simple( (str)in [, (str)splitchar=' ']) -> vector1_string : split to vector1< std::string > using arbitrary split character, but no empty strings (closer to python string::split)
 
string_to_sha1(...)
string_to_sha1( (str)input_string) -> str : utility/string_util.hh:175
 
swap4_aligned(...)
swap4_aligned( (object)v, (int)ndata) -> None : ////////////////////////////////
 
sys_sleep(...)
sys_sleep( (float)seconds) -> None : Sleep for a specified number of seconds
str :
timestamp()
Generate timestamp string
str :
timestamp_short()
Generate timestamp string, short format
 
trim(...)
trim( (str)s [, (str)drop=' ']) -> str : create a new string that drops all the unwanted substrings of the original string.
 
trimmed_compare(...)
trimmed_compare( (str)s1, (str)s2) -> bool : compares two strings ignoring leading and trailing spaces
Variables [hide private]
  __package__ = None
  smpi_char = rosetta.utility._utility_.simulate_mpi_message_typ...
  smpi_double = rosetta.utility._utility_.simulate_mpi_message_t...
  smpi_doubles = rosetta.utility._utility_.simulate_mpi_message_...
  smpi_integer = rosetta.utility._utility_.simulate_mpi_message_...
  smpi_integers = rosetta.utility._utility_.simulate_mpi_message...
  smpi_string = rosetta.utility._utility_.simulate_mpi_message_t...
Function Details [hide private]

ReadFromFileOrDie(...)

 

ReadFromFileOrDie( (str)filename, (str)contents) -> None :
    Reads the contents of <filename> into <contents>, preserving newline
    characters. Aborts if an error is encoutered.
    

    C++ signature :
        void ReadFromFileOrDie(std::string,std::string*)

__static_int_test()

 
    C++ signature :
        int __static_int_test()

Returns: int :

__static_string_test()

 
    C++ signature :
        std::string __static_string_test()

Returns: str :

add_spaces_left_align(...)

 

add_spaces_left_align( (str)st, (int)newlen) -> None :
    adds spaces to a left aligned string until a given length is reached
    

    C++ signature :
        void add_spaces_left_align(std::string {lvalue},unsigned long)

add_spaces_right_align(...)

 

add_spaces_right_align( (str)st, (int)newlen) -> None :
    adds spaces to a right aligned string until a given length is reached
    

    C++ signature :
        void add_spaces_right_align(std::string {lvalue},unsigned long)

code_from_6bit(...)

 

code_from_6bit( (int)_8bit) -> int :
    utility/Binary_Util.hh:51

    C++ signature :
        unsigned char code_from_6bit(unsigned char)

code_to_6bit(...)

 

code_to_6bit( (int)_6bit) -> int :
    ///////////////////////
    
      uuencode
    
    

    C++ signature :
        unsigned char code_to_6bit(unsigned char)

copysign(...)

 

copysign( (float)x, (float)y) -> float :
    utility/numbers.hh:77

    C++ signature :
        double copysign(double,double)

decode6bit(...)

 

decode6bit( (int)memory, (str)jar) -> int :
    utility/Binary_Util.hh:98

    C++ signature :
        int decode6bit(unsigned char*,std::string)

decode_32_to_24(...)

 

decode_32_to_24( (int)i0, (int)i1, (int)i2, (int)i3, (int)o0, (int)o1, (int)o2) -> None :
    utility/Binary_Util.hh:84

    C++ signature :
        void decode_32_to_24(unsigned char,unsigned char,unsigned char,unsigned char,unsigned char {lvalue},unsigned char {lvalue},unsigned char {lvalue})

encode6bit(...)

 

encode6bit( (int)memory, (int)length, (str)jar) -> None :
    utility/Binary_Util.hh:95

    C++ signature :
        void encode6bit(unsigned char const*,unsigned int,std::string {lvalue})

encode_24_to_32(...)

 

encode_24_to_32( (int)i0, (int)i1, (int)i2, (int)o0, (int)o1, (int)o2, (int)o3) -> None :
    utility/Binary_Util.hh:68

    C++ signature :
        void encode_24_to_32(unsigned char,unsigned char,unsigned char,unsigned char {lvalue},unsigned char {lvalue},unsigned char {lvalue},unsigned char {lvalue})

endswith(...)

 

endswith( (str)haystack, (str)needle) -> bool :
    True iff haystack ends with needle
    

    C++ signature :
        bool endswith(std::string,std::string)

file_basename(...)

 

file_basename( (str)full_path) -> str :
    utility/string_util.hh:148

    C++ signature :
        std::string file_basename(std::string)

file_contents(...)

 

file_contents( (str)file_name) -> str :
    Read the entire contents of a file into a string.  All end-of-line characters are replaced
    by "\n".  Throws a utility::excn::EXCN_msg_exception if the file cannot be opened.
    

    C++ signature :
        std::string file_contents(std::string)

filename(...)

 

filename( (str)path) -> str :
    utility/string_util.hh:152

    C++ signature :
        std::string filename(std::string)

get_num_digits(...)

 

get_num_digits( (int)value) -> int :
    utility/string_util.hh:307

    C++ signature :
        unsigned long get_num_digits(unsigned long)

get_resnum_and_chain(...)

 

get_resnum_and_chain( (str)s, (bool)string_is_ok) -> object :
    converts string like "1-3 20-22" or "A:1-5 B:20-22" to vectors containing resnums and chains.
    

    C++ signature :
        std::pair<std::vector<int, std::allocator<int> >, std::vector<char, std::allocator<char> > > get_resnum_and_chain(std::string,bool {lvalue})

get_resnum_and_chain_from_one_tag(...)

 

get_resnum_and_chain_from_one_tag( (str)tag, (std_vector_int)resnum, (std_vector_char)chains) -> bool :
    helper function for get_resnum_and_chain
    

    C++ signature :
        bool get_resnum_and_chain_from_one_tag(std::string,std::vector<int, std::allocator<int> > {lvalue},std::vector<char, std::allocator<char> > {lvalue})

get_undefined_real()

 
    Get a numeric value for Real that represents an "undefined" value
    

    C++ signature :
        double get_undefined_real()

Returns: float :

get_undefined_size()

 
    Get a numeric value for Size that represents an "undefined" value
    

    C++ signature :
        unsigned long get_undefined_size()

Returns: int :

is_false_string(...)

 

is_false_string( (str)value_str) -> bool :
    String accepted as a false value?
    

    C++ signature :
        bool is_false_string(std::string)

is_inf(...)

 

is_inf( (float)val) -> bool :
    utility/numbers.hh:67

    C++ signature :
        bool is_inf(double)

is_nan(...)

 

is_nan( (float)val) -> bool :
    utility/numbers.hh:62

    C++ signature :
        bool is_nan(double)

is_string_numeric(...)

 

is_string_numeric( (str)input) -> bool :
    utility/string_util.hh:142

    C++ signature :
        bool is_string_numeric(std::string)

is_true_string(...)

 

is_true_string( (str)value_str) -> bool :
    String accepted as a true value?
    

    C++ signature :
        bool is_true_string(std::string)

is_undefined(...)

 

is_undefined( (float)val) -> bool :
    Check if a Real is undefined (i.e has the same value as utility::get_undefined_real() )
    

    C++ signature :
        bool is_undefined(double)

is_undefined( (int)val) -> bool :
    Check if a Size is undefined (i.e has the same value as utility::get_undefined_size() )
    

    C++ signature :
        bool is_undefined(unsigned long)

join(...)

 

join( (str)string_w_spaces, (str)connector) -> str :
    join space separations in a string with a connector such as '_'
    

    C++ signature :
        std::string join(std::string,std::string)

join( (std_vector_string)s, (str)connector) -> str :
    combine strings with anything
    

    C++ signature :
        std::string join(std::vector<std::string, std::allocator<std::string> >,std::string)

join( (vector1_string)s, (str)connector) -> str :
    combine strings with anything
    

    C++ signature :
        std::string join(utility::vector1<std::string, std::allocator<std::string> >,std::string)

make_tag(...)

 

make_tag( (vector1_int)res_vector) -> str :
    utility/string_util.hh:293

    C++ signature :
        std::string make_tag(utility::vector1<int, std::allocator<int> >)

make_tag_with_dashes(...)

 

make_tag_with_dashes( (vector1_int)res_vector, (vector1_char)chain_vector [, (str)delimiter=' ']) -> str :
    utility/string_util.hh:290

    C++ signature :
        std::string make_tag_with_dashes(utility::vector1<int, std::allocator<int> >,utility::vector1<char, std::allocator<char> > [,char=' '])

make_tag_with_dashes( (vector1_int)res_vector [, (str)delimiter=' ']) -> str :
    Compactifies vectors of ints:  1 2 3 9 10 11 to "1-3 9-11"
    

    C++ signature :
        std::string make_tag_with_dashes(utility::vector1<int, std::allocator<int> > [,char=' '])

max(...)

 

max( (float)a, (float)b) -> float :
    max( long double, long double )
    

    C++ signature :
        long double max(long double,long double)

max( (float)a, (float)b) -> float :
    max( double, double )
    

    C++ signature :
        double max(double,double)

max( (float)a, (float)b) -> float :
    max( float, float )
    

    C++ signature :
        float max(float,float)

max( (int)a, (int)b) -> int :
    max( unsigned long int, unsigned long int )
    

    C++ signature :
        unsigned long max(unsigned long,unsigned long)

max( (int)a, (int)b) -> int :
    max( unsigned int, unsigned int )
    

    C++ signature :
        unsigned int max(unsigned int,unsigned int)

max( (int)a, (int)b) -> int :
    max( unsigned short int, unsigned short int )
    

    C++ signature :
        unsigned short max(unsigned short,unsigned short)

max( (int)a, (int)b) -> int :
    max( long int, long int )
    

    C++ signature :
        long max(long,long)

max( (int)a, (int)b) -> int :
    max( int, int )
    

    C++ signature :
        int max(int,int)

max( (int)a, (int)b) -> int :
    max( short int, short int )
    

    C++ signature :
        short max(short,short)

min(...)

 

min( (float)a, (float)b) -> float :
    min( long double, long double )
    

    C++ signature :
        long double min(long double,long double)

min( (float)a, (float)b) -> float :
    min( double, double )
    

    C++ signature :
        double min(double,double)

min( (float)a, (float)b) -> float :
    min( float, float )
    

    C++ signature :
        float min(float,float)

min( (int)a, (int)b) -> int :
    min( unsigned long int, unsigned long int )
    

    C++ signature :
        unsigned long min(unsigned long,unsigned long)

min( (int)a, (int)b) -> int :
    min( unsigned int, unsigned int )
    

    C++ signature :
        unsigned int min(unsigned int,unsigned int)

min( (int)a, (int)b) -> int :
    min( unsigned short int, unsigned short int )
    

    C++ signature :
        unsigned short min(unsigned short,unsigned short)

min( (int)a, (int)b) -> int :
    min( long int, long int )
    

    C++ signature :
        long min(long,long)

min( (int)a, (int)b) -> int :
    min( int, int )
    

    C++ signature :
        int min(int,int)

min( (int)a, (int)b) -> int :
    min( short int, short int )
    

    C++ signature :
        short min(short,short)

mpi_nprocs()

 
    utility/mpi_util.hh:35

    C++ signature :
        int mpi_nprocs()

Returns: int :

mpi_rank()

 
    utility/mpi_util.hh:32

    C++ signature :
        int mpi_rank()

Returns: int :

pathname(...)

 

pathname( (str)path) -> str :
    utility/string_util.hh:155

    C++ signature :
        std::string pathname(std::string)

py_xdec_ref(...)

 

py_xdec_ref( (object)arg1) -> None :

    C++ signature :
        void py_xdec_ref(_object*)

py_xinc_ref(...)

 

py_xinc_ref( (object)arg1) -> None :

    C++ signature :
        void py_xinc_ref(_object*)

rand_sleep()

 
    utility/basic_sys_util.hh:34

    C++ signature :
        void rand_sleep()

Returns: None :

receive_char_from_node(...)

 

receive_char_from_node( (int)source) -> str :
    Use MPI to receive a single char from a particular node.
    

    C++ signature :
        char receive_char_from_node(int)

receive_double_from_node(...)

 

receive_double_from_node( (int)source) -> float :
    Use MPI to receive a single double from a particular node.
    

    C++ signature :
        double receive_double_from_node(int)

receive_doubles_from_node(...)

 

receive_doubles_from_node( (int)source) -> vector1_Real :
    Use MPI to receive a vector of doubles from a particular node.
    

    C++ signature :
        utility::vector1<double, std::allocator<double> > receive_doubles_from_node(int)

receive_integer_from_anyone()

 
    Use MPI to wait until some node sends an integer -- usually its own mpi_rank
    so that it can send further messages.
    

    C++ signature :
        int receive_integer_from_anyone()

Returns: int :

receive_integer_from_node(...)

 

receive_integer_from_node( (int)source) -> int :
    Use MPI to receive a single integer from a particular node.
    

    C++ signature :
        int receive_integer_from_node(int)

receive_integers_from_node(...)

 

receive_integers_from_node( (int)source) -> vector1_int :
    Use MPI to receive a vector of integers from a particular node.
    

    C++ signature :
        utility::vector1<int, std::allocator<int> > receive_integers_from_node(int)

receive_string_from_node(...)

 

receive_string_from_node( (int)source) -> str :
    Use MPI to receive a string from a particular node.
    

    C++ signature :
        std::string receive_string_from_node(int)

replace_environment_variables(...)

 

replace_environment_variables( (str)input) -> str :
    find all environment variables with the form ${VARIABLE}
    and replace with the contents of that environment variable.
    if the environment variable does not exist, return string::npos
    

    C++ signature :
        std::string replace_environment_variables(std::string)

replace_in(...)

 

replace_in( (str)name_in, (str)find_string, (str)replace_string) -> str :
    find/replace strings within input string.
    

    C++ signature :
        std::string replace_in(std::string,std::string,std::string)

replace_in( (str)s, (str)from, (str)to) -> None :
    utility/string_util.hh:178

    C++ signature :
        void replace_in(std::string {lvalue},char,char const*)

round(...)

 

round( (float)val) -> float :
    utility/numbers.hh:72

    C++ signature :
        double round(double)

same_ignoring_spaces(...)

 

same_ignoring_spaces( (str)s1, (str)s2) -> bool :
    Compares two strings, ignoring spaces.  Useful for comparing atom
    name strings which have pdb-alignment built into them.  Slightly dangerous
    if you consider the fact that atom names in the PDB are different for
    different indentation rules: ' CA ' is c-alpha.  'CA  ' is calcium.
    

    C++ signature :
        bool same_ignoring_spaces(std::string,std::string)

send_char_to_node(...)

 

send_char_to_node( (int)destination, (str)message) -> None :
    utility/mpi_util.hh:54

    C++ signature :
        void send_char_to_node(int,char)

send_double_to_node(...)

 

send_double_to_node( (int)destination, (float)message) -> None :
    utility/mpi_util.hh:75

    C++ signature :
        void send_double_to_node(int,double)

send_doubles_to_node(...)

 

send_doubles_to_node( (int)destination, (vector1_Real)message) -> None :
    utility/mpi_util.hh:82

    C++ signature :
        void send_doubles_to_node(int,utility::vector1<double, std::allocator<double> >)

send_integer_to_node(...)

 

send_integer_to_node( (int)destination, (int)message) -> None :
    utility/mpi_util.hh:61

    C++ signature :
        void send_integer_to_node(int,int)

send_integers_to_node(...)

 

send_integers_to_node( (int)destination, (vector1_int)message) -> None :
    utility/mpi_util.hh:68

    C++ signature :
        void send_integers_to_node(int,utility::vector1<int, std::allocator<int> >)

send_string_to_node(...)

 

send_string_to_node( (int)source, (str)message) -> None :
    utility/mpi_util.hh:47

    C++ signature :
        void send_string_to_node(int,std::string)

set_pyexit_callback()

 
    C++ signature :
        void set_pyexit_callback()

Returns: None :

slurp(...)

 

slurp( (std_istream)in, (str)out) -> None :
    utility/string_util.hh:123

    C++ signature :
        void slurp(std::istream {lvalue},std::string {lvalue})

split(...)

 

split( (str)s) -> vector1_string :
    split given std::string using ' ' symbol.
    

    C++ signature :
        utility::vector1<std::string, std::allocator<std::string> > split(std::string)

split_to_list(...)

 

split_to_list( (str)s) -> object :
    split given std::string using ' ' symbol.
    

    C++ signature :
        std::list<std::string, std::allocator<std::string> > split_to_list(std::string)

split_to_set(...)

 

split_to_set( (str)s) -> set_string :
    split given std::string to a set using ' ' symbol.
    

    C++ signature :
        std::set<std::string, std::less<std::string>, std::allocator<std::string> > split_to_set(std::string)

split_whitespace(...)

 

split_whitespace( (str)s) -> vector1_string :
    split given std::string using whitespace as a separator.
    Unlike string_split_multi_delim(), any group of mixed whitespace counts only as a single seperator.
    

    C++ signature :
        utility::vector1<std::string, std::allocator<std::string> > split_whitespace(std::string)

startswith(...)

 

startswith( (str)haystack, (str)needle) -> bool :
    True iff haystack starts with needle
    

    C++ signature :
        bool startswith(std::string,std::string)

string2Real(...)

 

string2Real( (str)st) -> float :
    convert a string to a Real, returns numeric::get_undefined_real() on failure
    

    C++ signature :
        double string2Real(std::string)

string2Size(...)

 

string2Size( (str)st) -> int :
    convert a string to a Size, returns numeric::get_undefined_size() on failure
    

    C++ signature :
        unsigned long string2Size(std::string)

string2float(...)

 

string2float( (str)st) -> float :
    convert a string to a float, returns -1 on failure
    

    C++ signature :
        float string2float(std::string)

string2int(...)

 

string2int( (str)st) -> int :
    convert a string to an int, returns -1 on failure
    

    C++ signature :
        int string2int(std::string)

string2uint(...)

 

string2uint( (str)x, (int)y) -> None :
    utility/string_util.hh:115

    C++ signature :
        void string2uint(std::string,unsigned int*)

string_split(...)

 

string_split( (str)in [, (str)splitchar=' ']) -> vector1_string :
    split to vector1< std::string > using arbitrary split character
    

    C++ signature :
        utility::vector1<std::string, std::allocator<std::string> > string_split(std::string [,char=' '])

string_split_multi_delim(...)

 

string_split_multi_delim( (str)in [, (str)splitchars=' \t']) -> vector1_string :
    split to vector< std::string > using any of arbitrary split characters
    

    C++ signature :
        utility::vector1<std::string, std::allocator<std::string> > string_split_multi_delim(std::string [,std::string=' \t'])

string_split_simple(...)

 

string_split_simple( (str)in [, (str)splitchar=' ']) -> vector1_string :
    split to vector1< std::string > using arbitrary split character, but no empty strings (closer to python string::split)
    

    C++ signature :
        utility::vector1<std::string, std::allocator<std::string> > string_split_simple(std::string [,char=' '])

string_to_sha1(...)

 

string_to_sha1( (str)input_string) -> str :
    utility/string_util.hh:175

    C++ signature :
        std::string string_to_sha1(std::string)

swap4_aligned(...)

 

swap4_aligned( (object)v, (int)ndata) -> None :
    ////////////////////////////////
    

    C++ signature :
        void swap4_aligned(void*,long)

sys_sleep(...)

 

sys_sleep( (float)seconds) -> None :
    Sleep for a specified number of seconds
    

    C++ signature :
        void sys_sleep(double)

timestamp()

 
    Generate timestamp string
    

    C++ signature :
        std::string timestamp()

Returns: str :

timestamp_short()

 
    Generate timestamp string, short format
    

    C++ signature :
        std::string timestamp_short()

Returns: str :

trim(...)

 

trim( (str)s [, (str)drop=' ']) -> str :
    create a new string that drops all the unwanted substrings of
    the original string.
    

    C++ signature :
        std::string trim(std::string [,std::string=' '])

trim( (str)s [, (str)drop=' ']) -> None :
    utility/string_util.hh:125

    C++ signature :
        void trim(std::string {lvalue} [,std::string=' '])

trimmed_compare(...)

 

trimmed_compare( (str)s1, (str)s2) -> bool :
    compares two strings ignoring leading and trailing spaces
    

    C++ signature :
        bool trimmed_compare(std::string,std::string)


Variables Details [hide private]

smpi_char

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_char

smpi_double

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_double

smpi_doubles

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_doubles

smpi_integer

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_integer

smpi_integers

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_integers

smpi_string

Value:
rosetta.utility._utility_.simulate_mpi_message_type.smpi_string