Classes | Namespaces | Defines | Functions

openfst-1.2.6/src/include/fst/compat.h File Reference

#include <dlfcn.h>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#include <fst/config.h>
#include <fst/types.h>
#include <fst/lock.h>
#include <fst/flags.h>
#include <fst/log.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::CheckSummer
 Check sums. More...
struct  std::tr1::hash< uint64 >

Namespaces

namespace  fst
 

For optional argument declarations.


namespace  std
 

namespace fst


namespace  std::tr1

Defines

#define DISALLOW_COPY_AND_ASSIGN(type)
 Makes copy constructor and operator= private.

Functions

void FailedNewHandler ()
void fst::SplitToVector (char *line, const char *delim, std::vector< char * > *vec, bool omit_empty_strings)
template<typename To , typename From >
To fst::down_cast (From *f)
 Downcasting.
template<class Dest , class Source >
Dest fst::bit_cast (const Source &source)
 Bitcasting.
template<class Label >
bool fst::UTF8StringToLabels (const string &, std::vector< Label > *)
template<class Label >
bool fst::LabelsToUTF8String (const std::vector< Label > &, string *)

Detailed Description

compat.h

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: riley@google.com (Michael Riley)

Google compatibility declarations and inline definitions.

Definition in file compat.h.


Define Documentation

#define DISALLOW_COPY_AND_ASSIGN (   type  ) 
Value:
type(const type&);                      \
  void operator=(const type&)

Makes copy constructor and operator= private.

Definition at line 33 of file compat.h.


Function Documentation

void FailedNewHandler (  ) 

Definition at line 25 of file compat.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines