src/main/cpp/src/genomicsdb/variant.cc
void Variant::move_in(Variant& other)
{
  //Copy simple primitives
  copy_simple_members(other);
  //Move Calls
  m_calls.resize(other.get_num_calls());
  for(auto i=0ull;i<other.get_num_calls();++i)
    m_calls[i] = std::move(other.get_call(i));
  //Move common fields
  resize_common_fields(other.get_num_common_fields());
  for(auto i=0u;i<other.get_num_common_fields();++i)
    set_common_field(i, other.get_query_idx_for_common_field(i), other.get_common_field(i));
}
//Function that moves information from other to self
Function that moves information from other to self
Function that moves information from other to self
void Variant::move_in(Variant& other)
{
  copy_simple_members(other);
  m_calls.resize(other.get_num_calls());
  for(auto i=0ull;i<other.get_num_calls();++i)
    m_calls[i] = std::move(other.get_call(i));
  resize_common_fields(other.get_num_common_fields());
  for(auto i=0u;i<other.get_num_common_fields();++i)
    set_common_field(i, other.get_query_idx_for_common_field(i), other.get_common_field(i));
}
void Variant :: move_in ( Variant & other ) { copy_simple_members ( other ) ; m_calls . resize ( other . get_num_calls ( ) ) ; for ( auto i = 0ull ; i < other . get_num_calls ( ) ; ++ i ) m_calls [ i ] = std :: move ( other . get_call ( i ) ) ; resize_common_fields ( other . get_num_common_fields ( ) ) ; for ( auto i = 0u ; i < other . get_num_common_fields ( ) ; ++ i ) set_common_field ( i , other . get_query_idx_for_common_field ( i ) , other . get_common_field ( i ) ) ; }
Function that moves information from other to self
Function that moves information from other to self
//Copy simple primitives //Move Calls //Move common fields