00001 /** 00002 * \file AllBipartitePairContainer.h 00003 * \brief Return all pairs from a SingletonContainer 00004 * 00005 * This file is generated by a script (core/tools/make-container). 00006 * Do not edit directly. 00007 * 00008 * Copyright 2007-2010 IMP Inventors. All rights reserved. 00009 */ 00010 00011 #ifndef IMPCONTAINER_ALL_BIPARTITE_PAIR_CONTAINER_H 00012 #define IMPCONTAINER_ALL_BIPARTITE_PAIR_CONTAINER_H 00013 00014 #include "container_config.h" 00015 00016 #include <IMP/PairContainer.h> 00017 #include <IMP/SingletonContainer.h> 00018 #include <IMP/container/ListPairContainer.h> 00019 #include <IMP/container/PairContainerSet.h> 00020 00021 IMPCONTAINER_BEGIN_NAMESPACE 00022 00023 //! Return all bipartite pairs between two containers 00024 /** \see AllPairContainer 00025 00026 \usesconstraint 00027 */ 00028 class IMPCONTAINEREXPORT AllBipartitePairContainer : public PairContainer 00029 { 00030 IMP::internal::OwnerPointer<SingletonContainer> a_, b_; 00031 friend class AllPairContainer; 00032 AllBipartitePairContainer(SingletonContainer *a, 00033 SingletonContainer *b, bool); 00034 public: 00035 AllBipartitePairContainer(SingletonContainer *a, 00036 SingletonContainer *b); 00037 00038 static AllBipartitePairContainer * 00039 create_untracked_container(SingletonContainer *a, 00040 SingletonContainer *b) { 00041 AllBipartitePairContainer *lsc 00042 = new AllBipartitePairContainer(a,b, false); 00043 return lsc; 00044 } 00045 00046 IMP_PAIR_CONTAINER(AllBipartitePairContainer); 00047 }; 00048 00049 00050 IMPCONTAINER_END_NAMESPACE 00051 00052 #endif /* IMPCONTAINER_ALL_BIPARTITE_PAIR_CONTAINER_H */